<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <meta content='width=device-width, initial-scale=1.0' name='viewport'>
    <meta content='' name='description'>
    <meta content='Nils Nordman' name='author'>
    <link href='/images/howl.png' rel='shortcut icon'>
    <title>Howl :: Spec - howl.Regex</title>
    <link href="/stylesheets/bootstrap.min.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/syntax.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/howl.css" media="screen" rel="stylesheet" type="text/css" />
    <link href='//fonts.googleapis.com/css?family=Josefin+Slab' rel='stylesheet' type='text/css'>
    <link href='//fonts.googleapis.com/css?family=Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
  </head>
  <body class='doc doc_spec doc_spec_regex_spec'>
    <div class='container'>
      <div class='masthead'>
        <ul class='nav nav-pills'>
          <li>
            <a href='/'>
              <span class='glyphicon glyphicon-home'></span>
              Home
            </a>
          </li>
          <li>
            <a href='/doc/'>
              <span class='glyphicon glyphicon-book'></span>
              Documentation
            </a>
          </li>
          <li>
            <a href='/blog/'>
              <span class='glyphicon glyphicon-bullhorn'></span>
              Blog
            </a>
          </li>
          <li>
            <a href='/contact.html'>
              <span class='glyphicon glyphicon-inbox'></span>
              Contact
            </a>
          </li>
        </ul>
      </div>
      <ol class="breadcrumb"><li><a href="/">Home</a></li><li><a href='../'>Howl 0.3 Documentation</a></li><li>Spec</li><li>Spec - howl.Regex</li></ol>
      <div class="spec-group spec-group-1">&#x000A;&#x000A;<h1 id="howl.regex">howl.Regex</h1>&#x000A;&#x000A;<h4 id=".pattern-holds-the-regex-used-for-construction">.pattern holds the regex used for construction</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'foo(bar)'</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">(</span><span class="s1">'foo(bar)'</span><span class="p">).</span><span class="n">pattern</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id=".capture_count-holds-the-number-of-captures-in-the-pattern">.capture_count holds the number of captures in the pattern</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">(</span><span class="s1">'foo(bar) (\\w+)'</span><span class="p">).</span><span class="n">capture_count</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="r.is_instance(v)-returns-true-if-&lt;v&gt;-is-a-regex">r.is_instance(v) returns true if &lt;v&gt; is a regex</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">is_true</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">is_instance</span><span class="w"> </span><span class="n">r</span><span class="s1">'foo'</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">is_false</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">is_instance</span><span class="w"> </span><span class="s1">'foo'</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">is_false</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">is_instance</span><span class="w"> </span><span class="p">{}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="escape(s)-returns-a-string-with-all-special-regular-expression-symbols-escaped">escape(s) returns a string with all special regular expression symbols escaped</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'a\\.b\\*c'</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="p">.</span><span class="n">escape</span><span class="w"> </span><span class="s1">'a.b*c'</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="tostring(regex)-returns-the-pattern">tostring(regex) returns the pattern</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'\\s*(foo)'</span><span class="p">,</span><span class="w"> </span><span class="nb">tostring</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\s*(foo)'</span></code></pre>&#x000A;&#x000A;<div class="spec-group spec-group-2">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(creation)</span></h3>&#x000A;&#x000A;<h4 id="raises-an-error-if-the-pattern-is-invalid">raises an error if the pattern is invalid</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">raises</span><span class="w"> </span><span class="s1">'regular expression'</span><span class="p">,</span><span class="w"> </span><span class="o">-&gt;</span><span class="w"> </span><span class="n">r</span><span class="s1">'?\\'</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="returns-a-regex-for-a-valid-pattern">returns a regex for a valid pattern</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">is_not_nil</span><span class="w"> </span><span class="n">r</span><span class="s1">'foo()\\d+'</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="accepts-a-regex-as-well">accepts a regex as well</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">is_not_nil</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="n">r</span><span class="s1">'foo()\\d+'</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="accepts-and-optional-table-of-compile-flags">accepts and optional table of compile flags</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">reg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="s1">'.'</span><span class="p">,</span><span class="w"> </span><span class="p">{</span><span class="n">r</span><span class="p">.</span><span class="n">DOTALL</span><span class="p">}</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">is_truthy</span><span class="w"> </span><span class="n">reg</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s2">"\n"</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="accepts-and-optional-table-of-match-flags">accepts and optional table of match flags</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">reg</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">r</span><span class="w"> </span><span class="s1">'x'</span><span class="p">,</span><span class="w"> </span><span class="kc">nil</span><span class="p">,</span><span class="w"> </span><span class="p">{</span><span class="n">r</span><span class="p">.</span><span class="n">MATCH_ANCHORED</span><span class="p">}</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">is_falsy</span><span class="w"> </span><span class="n">reg</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s2">"ax"</span></code></pre>&#x000A;&#x000A;</div>&#x000A;<div class="spec-group spec-group-2">&#x000A;&#x000A;<h2 id="match">match<span class="arg-list">(string [, init])</span></h2>&#x000A;&#x000A;<h4 id="returns-nil-if-the-pattern-does-not-match">returns nil if the pattern does not match</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">is_nil</span><span class="w"> </span><span class="n">r</span><span class="s1">'foo'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'bar'</span></code></pre>&#x000A;&#x000A;<div class="spec-group spec-group-3">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(with no captures in the pattern)</span></h3>&#x000A;&#x000A;<h4 id="returns-the-entire-match">returns the entire match</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'right'</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="s1">'ri\\S+'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'red right hand'</span></code></pre>&#x000A;&#x000A;</div>&#x000A;<div class="spec-group spec-group-3">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(with captures in the pattern)</span></h3>&#x000A;&#x000A;<h4 id="returns-the-captured-values">returns the captured values</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s1">'red'</span><span class="p">,</span><span class="w"> </span><span class="s1">'right'</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'(r\\w+)\\s+(\\S+)'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'red right hand'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="empty-captures-are-returned-as-position-captures">empty captures are returned as position captures</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">4</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'()red()'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'red'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="position-captures-are-character-based">position captures are character based</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'å()ä()'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'åäö'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;</div>&#x000A;<div class="spec-group spec-group-3">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(when init is specified)</span></h3>&#x000A;&#x000A;<h4 id="matching-starts-from-the-init-position">matching starts from the init position</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'right'</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="s1">'r\\S+'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'red right hand'</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="s1">'r()\\S+'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'red right hand'</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="negative-values-counts-from-the-end">negative values counts from the end</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">equal</span><span class="w"> </span><span class="s1">'og'</span><span class="p">,</span><span class="w"> </span><span class="n">r</span><span class="s1">'o\\w'</span><span class="o">\</span><span class="n">match</span><span class="w"> </span><span class="s1">'top dog'</span><span class="p">,</span><span class="w"> </span><span class="o">-</span><span class="mi">2</span></code></pre>&#x000A;&#x000A;</div>&#x000A;</div>&#x000A;<div class="spec-group spec-group-2">&#x000A;&#x000A;<h2 id="find">find<span class="arg-list">(s, init)</span></h2>&#x000A;&#x000A;<h4 id="returns-nil-if-the-pattern-could-not-be-found-in-&lt;s&gt;">returns nil if the pattern could not be found in &lt;s&gt;</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">is_nil</span><span class="w"> </span><span class="n">r</span><span class="s1">'foo'</span><span class="o">\</span><span class="n">find</span><span class="w"> </span><span class="s1">'bar'</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="returns-the-indices-where-the-pattern-match-starts-and-end-if-found">returns the indices where the pattern match starts and end if found</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\pL'</span><span class="o">\</span><span class="n">find</span><span class="w"> </span><span class="s1">'!äö'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="returns-any-captures-after-the-indices">returns any captures after the indices</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="s1">'ä'</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'(\\pL)'</span><span class="o">\</span><span class="n">find</span><span class="w"> </span><span class="s1">'!äö'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="empty-captures-are-returned-as-position-captures">empty captures are returned as position captures</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">2</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\pL()'</span><span class="o">\</span><span class="n">find</span><span class="w"> </span><span class="s1">'!äö'</span><span class="w"> </span><span class="p">}</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="starts-matching-after-init">starts matching after init</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">3</span><span class="p">,</span><span class="w"> </span><span class="mi">5</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\w+()'</span><span class="o">\</span><span class="n">find</span><span class="w"> </span><span class="s1">'12ab2'</span><span class="p">,</span><span class="w"> </span><span class="mi">3</span><span class="p">}</span></code></pre>&#x000A;&#x000A;</div>&#x000A;<div class="spec-group spec-group-2">&#x000A;&#x000A;<h2 id="gmatch">gmatch<span class="arg-list">(s)</span></h2>&#x000A;&#x000A;<h4 id="returns-no-matches-when-it-does-not-match">returns no matches when it does not match</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">matches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="n">m</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\d+'</span><span class="o">\</span><span class="n">gmatch</span><span class="w"> </span><span class="s1">'well hello there'</span><span class="p">]</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{},</span><span class="w"> </span><span class="n">matches</span></code></pre>&#x000A;&#x000A;<div class="spec-group spec-group-3">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(with no captures in the pattern)</span></h3>&#x000A;&#x000A;<h4 id="produces-each-consecutive-match-in-each-call">produces each consecutive match in each call</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">matches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="n">m</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">m</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">r</span><span class="s1">'\\w+'</span><span class="o">\</span><span class="n">gmatch</span><span class="w"> </span><span class="s1">'well hello there'</span><span class="p">]</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="s1">'well'</span><span class="p">,</span><span class="w"> </span><span class="s1">'hello'</span><span class="p">,</span><span class="w"> </span><span class="s1">'there'</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="n">matches</span></code></pre>&#x000A;&#x000A;</div>&#x000A;<div class="spec-group spec-group-3">&#x000A;&#x000A;<h3 id=""><span class="arg-list">(with captures in the pattern)</span></h3>&#x000A;&#x000A;<h4 id="returns-empty-captures-as-position-matches">returns empty captures as position matches</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">matches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[</span><span class="n">p</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">p</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">r</span><span class="s1">'()\\pL+'</span><span class="o">\</span><span class="n">gmatch</span><span class="w"> </span><span class="s1">'well hellö there'</span><span class="w"> </span><span class="p">]</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="mi">12</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="n">matches</span></code></pre>&#x000A;&#x000A;&#x000A;<h4 id="produces-the-the-set-of-captures-in-each-call">produces the the set of captures in each call</h4>&#x000A;&#x000A;<pre class="highlight moonscript"><code><span class="n">matches</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="p">[{</span><span class="n">p</span><span class="p">,</span><span class="n">m</span><span class="p">}</span><span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="n">p</span><span class="p">,</span><span class="n">m</span><span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="n">r</span><span class="s1">'()(\\w+)'</span><span class="o">\</span><span class="n">gmatch</span><span class="w"> </span><span class="s1">'well hello there'</span><span class="p">]</span><span class="w">&#x000A;</span><span class="n">assert</span><span class="p">.</span><span class="n">same</span><span class="w"> </span><span class="p">{</span><span class="w"> </span><span class="p">{</span><span class="mi">1</span><span class="p">,</span><span class="w"> </span><span class="s1">'well'</span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="mi">6</span><span class="p">,</span><span class="w"> </span><span class="s1">'hello'</span><span class="p">},</span><span class="w"> </span><span class="p">{</span><span class="mi">12</span><span class="p">,</span><span class="w"> </span><span class="s1">'there'</span><span class="p">}</span><span class="w"> </span><span class="p">},</span><span class="w"> </span><span class="n">matches</span></code></pre>&#x000A;&#x000A;</div>&#x000A;</div>&#x000A;</div>
      <div class='footer text-muted'>
        <a href='/'>
          <img width="50" height="50" class="footer-logo" src="/images/howl.png" />
        </a>
        <div class='footer-follow'>
          <p>
            <a class='twitter-follow-button' data-lang='en' data-show-count='false' href='https://twitter.com/howleditor' rel='me'>
              Follow @howleditor
            </a>
          </p>
          <p>
            <a class='twitter-share-button' data-count='none' data-hashtags='howleditor' data-lang='en' data-text='The Howl Editor, a general purpose, light-weight customizable editor.' data-url='http://howl.io' href='https://twitter.com/share'>
              Tweet
            </a>
          </p>
        </div>
        <div class='footer-blurb'>
          <div>The Howl editor.</div>
          <div>
            Copyright 2012-2015
            <a class='alert-link' href='https://github.com/nilnor/howl/contributors'>
              The Howl Developers.
            </a>
          </div>
        </div>
      </div>
    </div>
    <script>
      <!-- / GA -->
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
      ga('create', 'UA-45283282-1', 'howl.io');
      ga('send', 'pageview');
      <!-- / Twitter -->
      !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];
      if(!d.getElementById(id)){js=d.createElement(s);js.id=id;
      js.src="//platform.twitter.com/widgets.js";
      fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
    </script>
  </body>
</html>
